package com.wk1un2.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.wk1un2.entity.Product;
import com.wk1un2.entity.ProductSpec;

public interface ProductSpecMapper {
	// ��ȡ������Ʒ�����Ϣ
	// ����������Ʒ��񼯺�
	public List<Map<String, Object>> getAll(@Param("page") int page, @Param("limit") int limit, @Param("ps_color") String ps_color,
			@Param("ps_price") String ps_price);
	public List<Map<String, Object>> getAllindex(@Param("page") int page, @Param("limit") int limit, @Param("p_id") Integer p_id);
	public Integer count();

	public Integer add(Map<String, Object> map);

	public Integer update(Map<String, Object> map);

	public Integer delete(@Param("ps_id") int ps_id);
}